<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../../script/jquery-1.7.2.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("div").click(function () {
                alert("div");
            });
            $(":button").click(function () {
                alert("button");
            });
        });
    </script>
</head>
<body>
    <div>
        <input type="button" value="点击">
    </div>
</body>
</html>